var Collection = /** @class */ (function () {
    function Collection() {
        this.data = [];
    }
    Collection.prototype.push = function () {
        var _a;
        var items = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            items[_i] = arguments[_i];
        }
        (_a = this.data).push.apply(_a, items);
    };
    Collection.prototype.shift = function () {
        return this.data.shift();
    };
    return Collection;
}());
var strCollection = new Collection();
strCollection.push('a', 'b');
console.log(strCollection.shift());
var numCollection = new Collection();
numCollection.push(1, 2);
console.log(numCollection.shift());
var hd = {
    name: "后盾人",
    age: 18
};
var xia = {
    name: "xiaxia",
    age: 16
};
var userCollection = new Collection();
userCollection.push(hd, xia);
console.log(userCollection.shift());
